package com.kayt.cyberBar.cuser.business.dao;

import java.sql.SQLException;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import com.kayt.cyberBar.common.PageData;
import com.kayt.cyberBar.cuser.business.entity.po.BPosition;

public interface IBPositionDao {
	Boolean checkExist(String name) throws SQLException;
	
	BPosition findById(String positionId);
	
	Map<String, BPosition> findAll() throws SQLException;
	
	Integer delete(String positionId);
	
	BPosition save(BPosition entity) throws SQLException;
	
	void modify(BPosition entity) throws SQLException;
	
	PageData<BPosition> findByPage(String hql, Object[] params, LinkedHashMap<String, String> orderMap) throws SQLException;
	
	PageData<BPosition> getPositionList(String storeCode,LinkedHashMap<String, String> orderMap) throws SQLException;
	
	List<BPosition> getPositionByStoreCode(String storeCode) throws SQLException;
	
	Map<String, BPosition> getPositionMapByStoreCode(String storeCode) throws SQLException;
	
	BPosition getByCode(String positionCode) throws SQLException;
}
